package com.hnevc.yourhealthmanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("food_meta_table")
@ApiModel(value = "FoodMeta",description = "食物元数据，记录食物的营养成分和能量密度")
public class FoodMeta {
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Integer id;
    @ApiModelProperty(value = "食物名称")
    private String foodName;
    @ApiModelProperty(value = "食物描述")
    private String foodDescription;
    @ApiModelProperty(value = "食物典型图片")
    private String foodImage;
    @ApiModelProperty(value = "食物类别ID")
    private Integer foodCategoryId;
    @ApiModelProperty(value = "食物能量密度，每百克，单位千卡")
    private Float calorieDensity;/*每百克，单位千卡*/
    @ApiModelProperty(value = "脂肪密度，每百克，单位克")
    private Float fatDensity; /*每百克，单位克*/
    @ApiModelProperty(value = "蛋白质密度，每百克，单位克")
    private Float proteinDensity;/*每百克，单位克*/
    @ApiModelProperty(value = "碳水密度，每百克，单位克")
    private Float carbohydrateDensity;/*每百克，单位克*/
}
